//
//  TabBarViewController.m
//  彩虹儿歌
//
//  Created by HelloWorld_L on 15/7/2.
//  Copyright (c) 2015年 HelloBaby. All rights reserved.
//

#import "TabBarViewController.h"
#import "MusicSwitchViewController.h"
#import "MovieShowViewController.h"
#import "DownLoadVC.h"
#import "UserVC.h"
#import "PlayerView.h"
#import "MacroHeader.h"
#import "KKNavigationController.h"

@interface TabBarViewController ()

@end

@implementation TabBarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createControllers];
}

- (void)createControllers
{
    MusicSwitchViewController *musicHPVC = [[MusicSwitchViewController alloc] init];
    musicHPVC.tabBarItem.title = @"听儿歌";
    musicHPVC.tabBarItem.image = [UIImage imageNamed:@"iconfont-music-11"];

    MovieShowViewController *movieHPVC = [[MovieShowViewController alloc] init];
    movieHPVC.tabBarItem.title = @"看儿歌";
    movieHPVC.tabBarItem.image = [UIImage imageNamed:@"iconfont-dianying-9"];

    MovieShowViewController *empty = [[MovieShowViewController alloc] init];
    empty.tabBarItem.title = @"";

    DownLoadVC *downLoadVC = [[DownLoadVC alloc] init];
    downLoadVC.tabBarItem.title = @"下载";
    downLoadVC.tabBarItem.image = [UIImage imageNamed:@"iconfont-xiazai-14"];

    UserVC *userVC = [[UserVC alloc] init];
    userVC.tabBarItem.title = @"我的";
    userVC.tabBarItem.image = [UIImage imageNamed:@"iconfont-geren-17"];
    
    
    self.viewControllers = @[musicHPVC,movieHPVC,empty,downLoadVC,userVC];

    self.tabBar.tintColor = [UIColor redColor];
    self.tabBar.translucent = YES;
    self.tabBar.barTintColor = [UIColor blackColor];
    self.tabBar.backgroundColor = [UIColor blackColor];
    self.tabBar.alpha = 0.6;


    [musicHPVC release];
    [movieHPVC release];
    [empty release];
    [downLoadVC release];
    [userVC release];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
